package com.light.gulimall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.light.common.utils.PageUtils;
import com.light.gulimall.ware.entity.WareInfoEntity;
import com.light.gulimall.ware.vo.FareVo;
import com.light.gulimall.ware.vo.StockLockResultVO;
import com.light.gulimall.ware.vo.StockLockVO;

import java.util.Map;

/**
 * 仓库信息
 *
 * @author minmin
 * @email 980680541@gmail.com
 * @date 2024-07-16 21:32:14
 */
public interface WareInfoService extends IService<WareInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 根据条件查询仓库列表
     * @param params    查询条件
     * @return  组装分页参数
     */
    PageUtils queryByCondition(Map<String, Object> params);

    FareVo getFare(Long addrId);

    /**
     * 锁定库存
     * @param vo
     * @return
     */
    void stockNum(StockLockVO vo);
}

